﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<CourseSystem.Core.Entities.StudentInfo>" %>
<% using (Ajax.BeginForm(new AjaxOptions { HttpMethod = "Post", UpdateTargetId = "RegDiv",  }))
   {%>
<% if (ViewData["msg"] != null)
   { %>
<p class="ui-state-highlight" style="">
    <%=ViewData["msg"] %></p>
<%} %>
<fieldset>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Uid) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Uid) %>
        <%: Html.ValidationMessageFor(model => model.Uid) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.PassWord) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.PassWord) %>
        <%: Html.ValidationMessageFor(model => model.PassWord) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.StuName) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.StuName) %>
        <%: Html.ValidationMessageFor(model => model.StuName) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.SubjectId) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.SubjectId)%>
        <%: Html.ValidationMessageFor(model => model.SubjectId)%>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.GradeYear) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.GradeYear) %>
        <%: Html.ValidationMessageFor(model => model.GradeYear) %>
    </div>
    <div class="editor-label">
        <%: Html.LabelFor(model => model.Class) %>
    </div>
    <div class="editor-field">
        <%: Html.TextBoxFor(model => model.Class) %>
        <%: Html.ValidationMessageFor(model => model.Class) %>
    </div>
    <p>
        <input type="submit" value="提交" />
    </p>
</fieldset>
<% } %>
